Page({
  data: {
    id:'',
    order_no:'',
    status:'',
    type:2,
  },
  onLoad(query) {
    if (query.id) {
      this.setData({
        id:query.id,
        order_no:query.order_no,
        status:query.status,
        type:query.type
      })
    }
  },
  goOrder(){
    my.navigateTo({ url: '../orderDetail/index?id=' + this.data.id + '&type=1'})

  },
  goPortal(){
    my.switchTab({
      url:'/pages/index/index'
    })
  }
});
